<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>React06</title>
  <style>
    ul {
      display: flex;
      column-gap: 20px;
      list-style: none;
    }
  </style>

</head>

<body>
  <div class="container"></div>

  <!-- react核心库 -->
  <script src="./js/react.development.js"></script>
  <!-- react拓展库 用于支持react操作dom -->
  <script src="./js/react-dom.development.js"></script>
  <script src="./js/babel.min.js"></script>
  <script type="text/babel">
    // 定义组件 => 函数式组件
    function MyComponent() {
      console.log('my component...')
      return (
        <header>
          <nav>
            <ul>
              <li>Home</li>  
              <li>About</li>  
              <li>Services</li>  
              <li>Support</li>  
            </ul>  
          </nav>  
        </header>
      )
    }

    ReactDOM.render(<MyComponent/>, document.querySelector('.container'))
  </script>
</body>

</html>